package main

func main()  {
	
}

type lianbiaos1 struct {
	val int
	next *lianbiaos1
}

func delNode(head *lianbiaos1, val int)  {
	curNode := head
	for curNode.next != nil {
		tmp := curNode.next
		if curNode.next.val == val {
			curNode.next = tmp.next
			tmp.next = nil
		}
		curNode = curNode.next
	}

}